import $on from '../lib/on.coffee'
import {倒计时} from './ipc/count_down.coffee'
import {选择区域,选择窗口} from './ipc/area.coffee'
import {工具条} from './ipc/recbar.coffee'

export default (src,audio,video,area)->
  camera = src=='camera'

  if (not camera) and area
    [选择窗口,选择区域][area-1]()
    return
  else
    #win = v.apply @,arguments
    倒计时()

  # if not_camera and video
  #  circle(select_area)

  工具条(src)

  return
